package com.lhb;

import com.lhb.service.impl.TestIOCImpl;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Program: spring
 * @Description:
 * @Author: LHB
 * @Version: v0.0.1 mode
 * @Time: 2021-07-26 14:56
 **/
@Configuration
@ComponentScan
public class ApplicationMain {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ApplicationMain.class);
		TestIOCImpl bean = applicationContext.getBean(TestIOCImpl.class);
		bean.helloIOC("hello spring ioc");
	}
}
